#include <QtGui>
#include <QGraphicsRectItem>

#include "square.h"

void Square::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
{
    setPainter(painter);
    painter->drawRect(-radius, -radius, 2*radius, 2*radius);
}

QString Square::toString()
{
    return "rectangle";
}

